home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Oberon⁄F™ 1.2 / Preinstalled version / System / Docu / XYplane (.txt) < prev   
Encoding:
Oberon Document  |  1996-07-08  |  3.1 KB  |  59 lines  |  [oODC/obnF]

  1. Documents.StdDocumentDesc
  2. Documents.DocumentDesc
  3. Containers.ViewDesc
  4. Views.ViewDesc
  5. Stores.StoreDesc
  6. Documents.ModelDesc
  7. Containers.ModelDesc
  8. Models.ModelDesc
  9. Stores.ElemDesc
  10. TextViews.StdViewDesc
  11. TextViews.ViewDesc
  12. TextModels.StdModelDesc
  13. TextModels.ModelDesc
  14. TextModels.AttributesDesc
  15. Helvetica
  16. TextRulers.StdRulerDesc
  17. TextRulers.RulerDesc
  18. TextRulers.StdStyleDesc
  19. TextRulers.StyleDesc
  20. TextRulers.AttributesDesc
  21. Helvetica
  22. Helvetica
  23. Helvetica
  24. Helvetica
  25. Helvetica
  26. XYplane
  27. DEFINITION XYplane;
  28.     CONST erase = 0; draw = 1;
  29.     VAR X, Y, W, H: INTEGER;
  30.     PROCEDURE Open;
  31.     PROCEDURE Dot (x, y, mode: INTEGER);
  32.     PROCEDURE IsDot (x, y: INTEGER): BOOLEAN;
  33.     PROCEDURE ReadKey (): CHAR;
  34.     PROCEDURE Clear;
  35. END XYplane.
  36. This module is provided for compatibility with the book "Programming in Oberon" (-> "Bibliography"). It is useful when learning the language. It is not recommended for use in production programs.
  37. CONST erase
  38. This value can be passed to parameter mode in procedure Dot. It indicates that a white dot should be placed at the given coordinates.
  39. CONST draw
  40. This value can be passed to parameter mode in procedure Dot. It indicates that a white dot should be placed at the given coordinates.
  41. VAR X, Y, W, H
  42. These values define the rectangle in which drawing occurs. (X, Y) is the lower-left corner of the rectangle, (W, H) its size. In Oberon/F, (X, Y) is always (0, 0). Unlike the port model of Oberon/F, XYplane has its origin at the lower-left corner of the drawing area, and positive Y values above the origin.
  43. PROCEDURE Open
  44. Opens a new window for drawing. The window's contents is cleared to white.
  45. PROCEDURE Dot (x, y, mode: INTEGER)
  46. Draws a white dot (mode = erase) or a black dot (mode = draw).
  47. PROCEDURE IsDot (x, y: INTEGER): BOOLEAN
  48. Returns whether the dot at (x, y) is white (FALSE) or black (TRUE).
  49. PROCEDURE ReadKey (): CHAR
  50. If a key has been pressed, it is returned as result. Otherwise, 0X is returned.
  51. PROCEDURE Clear
  52. Erases the whole drawing area (setting it to white).
  53. TextControllers.StdCtrlDesc
  54. TextControllers.ControllerDesc
  55. Containers.ControllerDesc
  56. Controllers.ControllerDesc
  57. Helvetica
  58. Documents.ControllerDesc
  59.